|
|
|
|
|
|
|
Figure 14.11.
Adding a heading to the simple Web page. |
|
|
|
|
|
|
|
|
If you've been browsing the Web for any length of time, you've probably seen nice background colors used on the Web sites that you've visited. To make your Web page more pleasant to look at, add some color to the background. Using tags to set the background color requires you to know the hexadecimal RGB values for the color you want to use. The color value is usually entered by assigning the bgcolor property of the <body> tag, using the form #rrggbb as follows: |
|
|
|
|
|
|
|
|
<body bgcolor=#C0C0C0> </body> |
|
|
|
|
|
|
|
|
This will change the background color to silver. |
|
|
|
|
|
|
|
|
Next, you could add an image to the Web page by modifying the <body> tag in the Web page. The following is an example that adds the background image shown in Figure 14.12 to the page: |
|
|
|
|
|
|
|
|
<body background=file:///C:/temp/CDROM.gif bgcolor=#C0C0C0> </body> |
|
|
|
|
|